home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 21 / AACD 21.iso / AACD / Utilities / Ghostscript / src / dwimg.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-01-01  |  1.6 KB  |  55 lines

  1. /* Copyright (C) 1996, Russell Lang.  All rights reserved.
  2.   
  3.   This file is part of AFPL Ghostscript.
  4.   
  5.   AFPL Ghostscript is distributed with NO WARRANTY OF ANY KIND.  No author or
  6.   distributor accepts any responsibility for the consequences of using it, or
  7.   for whether it serves any particular purpose or works at all, unless he or
  8.   she says so in writing.  Refer to the Aladdin Free Public License (the
  9.   "License") for full details.
  10.   
  11.   Every copy of AFPL Ghostscript must include a copy of the License, normally
  12.   in a plain ASCII text file named PUBLIC.  The License grants you the right
  13.   to copy, modify and redistribute AFPL Ghostscript, but only under certain
  14.   conditions described in the License.  Among other things, the License
  15.   requires that the copyright notice and this notice be preserved on all
  16.   copies.
  17. */
  18.  
  19.  
  20. // $Id: dwimg.h,v 1.2 2000/09/19 19:00:09 lpd Exp $
  21.  
  22. // Image Window class
  23.  
  24. class ImageWindow {
  25.     static ImageWindow *first;
  26.     ImageWindow *next;
  27.  
  28.     HWND hwnd;
  29.     char FAR *device;        // handle to Ghostscript device
  30.  
  31.     int width, height;
  32.  
  33.     // Window scrolling stuff
  34.     int cxClient, cyClient;
  35.     int cxAdjust, cyAdjust;
  36.     int nVscrollPos, nVscrollMax;
  37.     int nHscrollPos, nHscrollMax;
  38.  
  39.     void register_class(void);
  40.  
  41.          public:
  42.     static HINSTANCE hInstance;    // instance of EXE
  43.  
  44.     static HWND hwndtext;    // handle to text window
  45.  
  46.     friend ImageWindow *FindImageWindow(char FAR * dev);
  47.     void open(char FAR * dev);
  48.     void close(void);
  49.     void sync(void);
  50.     void page(void);
  51.     void size(int x, int y);
  52.     void create_window(void);
  53.     LRESULT WndProc(HWND, UINT, WPARAM, LPARAM);
  54. };
  55.